#include<stdio.h>

#define SWAP(x) ((x)>='a'&&(x)<='z'?(x)-32:(x)+32)

int main()
{
	char ch = 0;
	scanf("%c",&ch);
	printf("%c",SWAP(ch));
	
	printf("%c",SWAP('f'));
	
	printf("%c",SWAP('Y'));
	
	return 0;
}
